package com.hutianao.gqgl.post.repository;

import com.hutianao.gqgl.mybatis.entity.PtPostEntity;
import com.hutianao.gqgl.mybatis.flexigrid.PaddingEntity;
import com.hutianao.gqgl.mybatis.ztree.ZtreeEntity;
import com.hutianao.gqgl.post.entity.SearchPostEntity;
import com.hutianao.gqgl.spring.tag.entity.DictTagEntity;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface PostDao {
    List<ZtreeEntity> queryLeftOrganTree();

    List<PtPostEntity> queryPostInfoListByOrgan(@Param("search") SearchPostEntity search, @Param("padding") PaddingEntity padding);

    Integer queryPostInfoTotal(@Param("search")SearchPostEntity search);

    PtPostEntity queryPostInfoById(@Param("dutyId") String dutyId);

    List<DictTagEntity> queryRoleList();

    List<DictTagEntity> queryOrganList();
}
